const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  userId: state => state.user.userId,
  routes: state => state.permission.routes, // 导出当前的路由
  userName: state => state.user.userInfo.user_name,
  avatar: state => state.user.userInfo.user_pic
}
export default getters
